package com.xm.zcf.service.categorySecond.impl;

import com.xm.zcf.dao.categorySecond.CategorySecondDao;
import com.xm.zcf.domain.categorySecond.Categorysecond;
import com.xm.zcf.service.categorySecond.CategorySecondService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2017/3/15.
 */
@Service
@Transactional
public class CategorySecondServiceImpl implements CategorySecondService{
    @Resource
    private CategorySecondDao categorySecondDao;
    @Override
    public List findByCid(Integer cid) {
        return categorySecondDao.findByCid(cid);
    }

    @Override
    public List<Categorysecond> findSecondAll() {
        return categorySecondDao.findSecondAll();
    }

    @Override
    public void save(Categorysecond model) {
        categorySecondDao.save(model);
    }

    @Override
    public Categorysecond findById(int csid) {
        return categorySecondDao.findById(csid);
    }

    @Override
    public void update(Categorysecond categorysecond) {
        categorySecondDao.update(categorysecond);
    }

    @Override
    public void deleteCategory(Categorysecond category) {
        categorySecondDao.deleteCategory(category);
    }


}
